import request from "../utils/request";

export function getCart(id) {
  return request({
    url: "/cart/index",
    method: "get",
  });
}

export function updataCart(data) {
  return request({
    url: "/cart/update",
    method: "post",
    data,
    headers: {
      "Content-Type": "application/json",
    }
  });
}

export function deleteCart(data) {
  return request({
    url: "/cart/delete",
    method: "post",
    data,
    headers: {
      "Content-Type": "application/json",
    }
  });
}